package com.etc.baolema.service.impl;

import com.etc.baolema.dao.UserDao;
import com.etc.baolema.dao.impl.UserDaoImpl;
import com.etc.baolema.entity.User;
import com.etc.baolema.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao dao = new UserDaoImpl();
    @Override
    public int addUser(User user) {
        return dao.ADDUser(user);
    }

    @Override
    public User login(String user) {
        return dao.login(user);
    }
}
